<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@page import="Entity.*"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<%
		List<Teacher> tlist = new ArrayList<Teacher>();
		if (session.getAttribute("allTeachers_session") != null) {
			tlist = (List) session.getAttribute("allTeachers_session");
			session.removeAttribute("allTeachers_session");
		}
	%>
	<link href="<%=request.getContextPath()%>/css/backstage.css"
		rel="stylesheet" type='text/css' />
	<div class="header">
		<font size='6' color="#FF0000"><br />&emsp;&emsp;&emsp;教师信息管理</font>
	</div>
	<form action="../AdminControl/queryteacher" method="post"
		name="teacher_search_form">
		<input style="float: right" type="submit" value="搜索" /> <input
			type="text" name="teacher_id" style="float: right" />
	</form>
	<table align="center" width="1300" border="1" class="mytable">
		<tr align="center">
			<td align="center" colspan="9">
				<h2>所有教师信息</h2>
			</td>
		</tr>
		<tr align="center">
			<td><b>教师号</b></td>
			<td><b>姓名</b></td>
			<td><b>性别</b></td>
			<td><b>学院</b></td>
			<td><b>专业</b></td>
			<td><b>密码</b></td>
			<td colspan="2"><a href="../jsp/add_Teacher.jsp"
				style="color: #FFFFFF; text-decoration: none">添加教师</a></td>
		</tr>
		<%
		for(Teacher tec:tlist){
		%>
		<tr>
			<td><%=tec.getTeacher_id() %></td>
			<td><%=tec.getTeacher_name() %></td>
			<td><%=tec.getTeacher_sex() %></td>
			<td><%=tec.getTeacher_dept() %></td>
			<td><%=tec.getTeacher_major() %></td>
			<td><%=tec.getTeacher_pwd() %></td>
			<td><a
				href="../AdminControl/deleteteacher/<%=tec.getTeacher_id() %>"
				style="text-decoration: none">删除</a></td>
			<td><a
				href="../AdminControl/updateteacherView/<%=tec.getTeacher_id() %>"
				style="text-decoration: none">修改</a></td>
		</tr>
		<%} %>
	</table>
</body>
</html>